<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Upload Image Page</title>
        <link rel="stylesheet" href="style.css" type="text/css"/>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <h1>Photo Share</h1>
                <img src="header_right.gif" alt="hinh"/>
            </div>
            <div id="nav">
                <ul>
                    <li><a href="#">Home</a></li>
                    <li><a href="#">Manage Collection</a></li>
                    <li><a href="#">Manage Image</a></li>
                    <li><a href="#">Upload</a></li>
                    <li><a href="#">FAQs</a></li>
                    <li class="end"><a href="#">Contact</a></li>
                </ul>
            </div>
            <div id="main">
                <div id="slidebar">
                    <div id="login">
                        <h1>Login here</h1>

                        <table border="0">
                            <tbody>
                                <tr>
                                    <td><label>Welcome</label></td>
                                </tr>
                                <tr>
                                    <td>Vu Duy Hoang</td>
                                </tr>
                                <tr>
                                    <td><a href="#">My Profile</a></td>
                                </tr>
                                <tr>
                                    <td><a href="#">View History</a></td>
                                </tr>
                                <tr>
                                    <td><a href="#">Logout</a></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="search">
                        <h1>Search</h1>
                        <table border="0">
                            <tbody>
                                <tr>
                                    <td><label>Name</label></td>
                                </tr>
                                <tr>
                                    <td><input type="text" name="" value=""/></td>
                                </tr>
                                <tr>
                                    <td><input type="submit" value="Search"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="product">
                        <h1>Photo</h1>
                        <ul>
                            <li><a href="#">Collection</a></li>
                            <li><a href="#">+ Ocean</a></li>
                            <li><a href="#">+ Natural</a></li>
                            <li><a href="#">+ Animal</a></li>
                            <li class="end"><a href="#">+ City</a></li>
                        </ul>
                    </div>
                </div>
                <div id="content">
                    <h1>Upload Image</h1>
                    <c:set var="show" value="${requestScope.ViewUpload}"/>
                    <form id="form1" name="form1" method="post" action="TriController" enctype="multipart/form-data">
                        <table width="457" border="0">
                            <c:forEach var="show" items="${show}">
                                 <tr>
                                <td colspan="2">Username:<label>${show.registeredUser.username}</label>
                                    <input type="hidden" name="txtUsername" value="${show.registeredUser.username}" />
                                    <input type="hidden" name="txtIdContest" value="${show.createsContest.idContest}" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2"><input type="file" name="filebox" value="" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2"><label></label><label></label>
                                    <p align="center">Information of Image:</p>
                                    <p>
                                        <label>
                                            <textarea name="txtInfoImage" id="txtInfoImage" cols="70" rows="5"></textarea>
                                        </label>
                                    </p></td>
                            </tr>
                            <tr>
                                <td width="100">&nbsp;</td>
                                <td width="513"><label>
                                        <input type="submit" name="action" id="btnUpload" value="Upload" />
                                        <input type="submit" name="btnCancel" id="btnCancel" value="Cancel" />
                                    </label></td>
                            </tr>
                            </c:forEach>
                           
                        </table>
                    </form>
                </div>
            </div>
            <div id="footer">

            </div>
        </div>
    </body>
</html>
